import { defineStore } from "pinia";

export const useHomeStore = defineStore('home', {
    state: () => ({
        family: 4,
        happy: 'good'
    }),
    getters: {
        changeHappyValue(): any {
            return 'not' + this.happy
        }
    },
    actions: {
        changeHappy(parmas: string) {
            this.happy = parmas
        }
    }
})